<?php
/**
 * Created by PhpStorm.
 * User: Phantom
 * Date: 25/07/14
 * Time: 20:36
 */
class Role_Utilisateur{
    private $id;
    private $role;

    function __construct() {
    }

    public static function mapping($object){
        if($object==null){
            return get_object_vars(new Role_Utilisateur());
        }else{
            return get_object_vars($object);
        }
    }

    /**
     * @param $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @return id
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param  $role
     */
    public function setRole($role)
    {
        $this->role = $role;
    }

    /**
     * @return role
     */
    public function getRole()
    {
        return $this->role;
    }

}